import java.util.Scanner;

/**
 * 百钱买百鸡
 */
public class HundredChickens {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int begin = scanner.nextInt();
            int totalMoney = 100;
            int totalCount = 100;
            // 最大公鸡数
            int max1 = 14;
            // 最大母鸡数
            int max2 = 25;
            // 忽略小鸡的情况下，简化为7x+4y=100;
            for (int i=0; i<=max1; i++) {
                StringBuffer stringBuffer = new StringBuffer();
                for (int j=0; j<=max2; j++) {
                    if ((7*i + 4*j)==100) {
                        stringBuffer.append(i).append(" ").append(j).append(" ").append(100-i-j);
                        System.out.println(stringBuffer.toString());
                    }
                }
            }
        }
    }
}
